import React, { Component } from 'react';
import Taro from '@tarojs/taro';
import {View} from '@tarojs/components'

export default class Apply extends Component {
  UNSAFE_componentWillMount() {
    let mpkey = ''
    const uInfo = Taro.getStorageSync('user') || ''
    if (uInfo && uInfo.mpkey && uInfo.mpkey !== 'undefined') {
      mpkey = uInfo.mpkey
    }
    Taro.redirectTo({
      url: '/other/city-labels/city-labels?id=' + Taro.getCurrentInstance().router.params.labelId || "0" + '&mpkey=' + mpkey
    })
  }

  render() {
    return (
      <View />
    )
  }
}
